package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.domain.CommodityCatalog;
import cn.wolfcode.trip.base.query.CommodityQueryObject;
import cn.wolfcode.trip.base.service.ICommodityCatalogService;
import cn.wolfcode.trip.base.service.ICommodityService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/*
* 接口:根据userId查询所有的评论
* */
@RestController
@RequestMapping("/commodities")
public class CommodityController {
    @Autowired
    private ICommodityService commodityService;

    @GetMapping
    public PageInfo queryByCatalogId(CommodityQueryObject qo){
        return  commodityService.queryCatalogId(qo);
    }


}
